package com.example.piece.ui.adapter

import android.view.View
import android.widget.Toast
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.example.base.ext.setCornersPlaceHolderImageUrl
import com.example.piece.BR
import com.example.piece.R
import com.example.piece.databinding.ItemHomeSearchHistoryBinding
import com.example.piece.databinding.ItemLedouBinding
import com.example.piece.databinding.ItemMsgBinding
import com.example.piece.databinding.ItemSystemMsgBinding
import com.example.piece.entity.UserCommentListEntity
import com.example.piece.entity.UserLedouListEntity
import com.example.piece.entity.UserMessageSystemEntity

class LeDouAdapter :
    BaseQuickAdapter<UserLedouListEntity, BaseDataBindingHolder<ItemLedouBinding>>(
        R.layout.item_ledou
    ), LoadMoreModule {


    override fun convert(
        holder: BaseDataBindingHolder<ItemLedouBinding>,
        item: UserLedouListEntity,
    ) {
        val binding =
            holder.dataBinding
        val variable = binding?.setVariable(BR.entity, item)
        binding?.setVariable(BR.adapter, this)
        binding?.setVariable(BR.position, holder.layoutPosition)
        binding?.executePendingBindings()
    }


}